<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><s:property value="scrName"/>-沈阳外卖网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="在<s:property value="scrName"/>附近叫外卖，查看<s:property value="scrName"/>附近的餐厅、美食信息" />
<!-- Bootstrap -->
<link href="publicui/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<!--[if lt IE 9]>
  <script src="public/js/html5shiv.js"></script>
<![endif]-->
<!-- application  -->
<link href="css/head.css" rel="stylesheet" />
<link href="css/foot.css" rel="stylesheet" />
<link href="css/listindex.css" rel="stylesheet" />
</head>
<body >
<div class="body_bg" >
<!-----nav-->
<s:action name="top" executeResult="true"></s:action>
<!---/nav   --> 

<!---/body   -->
<div class="content" > 
  <!--  banner    -->
<div  class="banner-box" >
<a href=""  ><img src="/images/listindex/banner.png" border="0"  /></a>
</div>
<!--  /banner    -->
  <table class="table table-bordered">
    <thead>
      <tr>
        <th colspan="5">我的收藏</th>
      </tr>
    </thead>
    <tbody id="collectList">
      <tr>
      <%int i=0; %>
      <s:if test="collectList!=null">
      <s:iterator id="cl" value="%{collectList}">
      <%i++; %>
      <td>
      <s:if test="#cl.restaurant.isBusiness==1">
      <div class="restaurant-block lite" id="restaurant-<s:property value="#l.restaurant.id"/>" rel="<s:property value="#l.restaurant.id"/>">
      </s:if>
      <s:else>
      <div class="restaurant-block closed" id="restaurant-<s:property value="#l.restaurant.id"/>" rel="<s:property value="#l.restaurant.id"/>">
      </s:else>
            <div class="favor-book" > 
                <span class="favor-icon"></span>
                <a href="#" class="hover-un-favor entry-un-favor" rel="<s:property value="#cl.restaurant.id"/>">取消收藏</a>
            </div>
            <div class="line-one">
              <div class="logo-wrapper">
                <div class="logo"> 
                    <a href="res.action?id=<s:property value="#cl.restaurant.id"/>" target="_blank">
                    	<img class="restaurant-logo " alt="" src="http://fuss10.elemecdn.com/0/50/3a6d5854b2284356e46cd4733c6a5jpeg.jpeg" />
                    </a> 
                    <div   class="phone-logo" ></div>
                </div>
                <div class="deliver-time-wrapper busy" title="平均送餐时间:<s:property value="#cl.restaurant.deliverTime"/>分钟"><s:property value="#cl.restaurant.deliverTime"/>分钟</div>
              </div>
              <div class="info">
                <div class="name"> 
                	<a class="restaurant-link" href="res.action?id=<s:property value="#cl.restaurant.id"/>" target="_blank"><s:property value="#cl.restaurant.resName"/></a> 
                </div>
                <!--  饭店显示 样式  start -->
                <s:if test="#cl.restaurant.isBusiness==1">
                <div class="flavors ">
                <s:property value="#cl.restaurant.resTaste"/>
                </div>
                <div class="ratings ">
                    <div class="r<s:property value="#cl.restaurant.score"/> rating-star" title="餐厅评价：<s:property value="#cl.restaurant.score"/>分"></div>
                </div>
                </s:if>
                <!--  饭店显示 样式  end -->
                <!--  饭店休息中的样式 start-->
                <s:if test="#cl.restaurant.isBusiness==0">
                <div class="status-label closed ">
                    <span>休息中</span>
                </div>
                </s:if>
                <s:if test="#cl.restaurant.isBusiness==-1">
                <div class="status-desc closed ">
                      <span title="餐厅已休假，暂不提供外卖服务">餐厅已休假</span>
                </div>
                </s:if>
                <!-- 两项中任选一个显示  end -->
                <!--  收藏中的样式  end  -->
                
              </div>
            </div>
          </div></td>
      </s:iterator>
      </s:if>
      <%
      	if(i<5){ 
      		for(int j=0;j<5-i;j++){
      			%>
      			<td><div class="restaurant-block closed">
		            <div class="add-favor"></div>
		        </div></td>
      			<%
      		}
      	}
      %>
      </tr>
    </tbody>
  </table>
  <table class="table table-bordered more-restaurant-table">
    <thead>
      <tr>
        <th colspan="5">推荐餐厅</th>
      </tr>
    </thead>
    <tbody>
      <%int k=0; %>
      <s:if test="list!=null">
      <tr>
      <s:iterator id="l" value="%{list}" status="st">
      <s:if test="#st.count<=15">
      <%k++; %>
      <td>
      <s:if test="#l.restaurant.isBusiness==1">
      <div class="restaurant-block lite" id="restaurant-<s:property value="#l.restaurant.id"/>" rel="<s:property value="#l.restaurant.id"/>">
      </s:if>
      <s:else>
      <div class="restaurant-block closed" id="restaurant-<s:property value="#l.restaurant.id"/>" rel="<s:property value="#l.restaurant.id"/>">
      </s:else>
            <div class="favor-book" > 
                <span class="favor-icon"></span>
                <s:if test="uid>0">
                	<s:if test="#l.restaurant.isCollect==0">
	                	<a href="#" class="hover-add-favor hidden entry-favor" rel="<s:property value="#l.restaurant.id"/>">收藏</a>
	                </s:if>
	                <s:if test="#l.restaurant.isCollect==1">
	                	<a href="#" class="hover-un-favor  hidden entry-un-favor" rel="<s:property value="#l.restaurant.id"/>">取消收藏</a>
	                </s:if>
                </s:if>
            </div>
            <div class="line-one">
              <div class="logo-wrapper">
                <div class="logo"> 
                    <a href="res.action?id=<s:property value="#l.restaurant.id"/>" target="_blank">
                    	<img class="restaurant-logo " alt="" src="http://fuss10.elemecdn.com/0/50/3a6d5854b2284356e46cd4733c6a5jpeg.jpeg" />
                    </a> 
                    <div   class="phone-logo" ></div>
                </div>
                <div class="deliver-time-wrapper busy"    title="平均送餐时间:<s:property value="#l.restaurant.deliverTime"/>分钟"><s:property value="#l.restaurant.deliverTime"/>分钟</div>
              </div>
              <div class="info">
                <div class="name"> 
                	<a class="restaurant-link" href="res.action?id=<s:property value="#l.restaurant.id"/>" target="_blank"><s:property value="#l.restaurant.resName"/></a> 
                </div>
                <!--  饭店显示 样式  start -->
                <s:if test="#l.restaurant.isBusiness==1">
                <div class="flavors "><s:property value="#l.restaurant.resTaste"/></div>
                <div class="ratings ">
                    <div class="r<s:property value="#l.restaurant.score"/> rating-star" title="餐厅评价：<s:property value="#l.restaurant.score"/>分"></div>
                </div>
                </s:if>
                <!--  饭店显示 样式  end -->
                <!--  饭店休息中的样式 start-->
                <s:if test="#l.restaurant.isBusiness==0">
                <div class="status-label closed ">
                    <span>休息中</span>
                </div>
                </s:if>
                <s:if test="#l.restaurant.isBusiness==-1">
                <div class="status-desc closed ">
                      <span title="餐厅已休假，暂不提供外卖服务">餐厅已休假</span>
                </div>
                </s:if>
                <!-- 两项中任选一个显示  end -->
                <!--  收藏中的样式  end  -->
              </div>
            </div>
            <div class="hidden line-hover-dlg" id="restaurant-hover-dlg-content-15780">
              <div class="restaurant-panel"> <span class="favor-icon hidden"></span>
                <div class="restaurant-block">
                  <div class="line-one">
                    <div class="logo-wrapper">
                      <div class="logo"> 
                      	<img class="restaurant-logo" alt="" src="http://fuss10.elemecdn.com/0/50/3a6d5854b2284356e46cd4733c6a5jpeg.jpeg"> 
                        </div>
                      <div class="deliver-time-wrapper"> <s:property value="#l.restaurant.deliverTime"/>分钟 </div>
                    </div>
                    <div class="info">
                      <div class="name" title="<s:property value="#l.restaurant.resName"/>"><s:property value="#l.restaurant.resName"/></div>
                      <div class="flavors three-line"> 
                      	<s:property value="#l.restaurant.resTaste"/>
                       </div>
                      <div class="ratings three-line">
                        <div class="r<s:property value="#l.restaurant.score"/> rating-star"  title="餐厅评价：<s:property value="#l.restaurant.score"/>分"> </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="restaurant-more-info">
                  <div class="divider hidden"></div>
                <div class="divider hidden"></div>
                <p class="ann"><strong>公告:</strong>&nbsp;<s:property value="#l.restaurant.notice"/></p>
                <p class="ann"><strong>温馨提示：</strong>&nbsp;<s:property value="#l.restaurant.specialMemo"/></p>
                  <p class="restaurant-deliver-desc"><strong>起送价:</strong>&nbsp;<s:property value="#l.restaurant.deliveryPrice"/></p>
                  <p><strong>地址:</strong>&nbsp;<s:property value="#l.restaurant.address"/></p>
                  <p><strong>营业时间:</strong>
                  <s:if test="#l.restaurant.timeList!=null">
                  <s:iterator id="t" value="%{#l.restaurant.timeList}">
                  &nbsp;<s:property value="#t.startHour"/>:<s:if test="#t.startMinute<10">0<s:property value="#t.startMinute"/></s:if><s:if test="#t.startMinute>9"><s:property value="#t.startMinute"/></s:if>
                   - <s:property value="#t.endHour"/>:<s:if test="#t.endMinute<10">0<s:property value="#t.endMinute"/></s:if><s:if test="#t.endMinute>9"><s:property value="#t.endMinute"/></s:if>
                  </s:iterator>
                  </s:if>
                  </p>
                  <p><strong>简介:</strong>&nbsp;<s:property value="#l.restaurant.summary"/></p>
                </div>
              </div>
            </div>
          </div></td>
          <%
          if(k%5==0){
          	%></tr><tr><%
          }
           %>
          </s:if>
          </s:iterator>
          <%
          if(k%5!=0){
          	for(int l=0;l<(5-k%5);l++){
          		%><td></td><%
          	}
          } 
          %>
          </tr>
          </s:if>
    </tbody>
  </table>
  <!--  banner    -->
    <div  class="banner-box" >
    <a href=""  ><img src="/images/listindex/banner.png" border="0"  /></a>
    </div>
<!--  /banner    -->
  <!--   暂时不用 
   <div class="activities-row">
        <div class="activity-block "> <a rel="nofollow"  class="activity-link" target="_blank" href="#" id="activity-hot_foods"><img src="/images/listindex/hot.gif" title="热卖美食" /></a> </div>
        
        <div class="activity-block "> <a rel="nofollow"  class="activity-link" target="_blank" href="#" id="activity-try_order_flow"><img src="/images/listindex/order.gif" title="体验订餐流程" /></a> </div>
        
        <div class="activity-block "> <a rel="nofollow"  class="activity-link" target="_blank" href="#" id="activity-mobile_app"><img src="/images/listindex/poneapp.gif" title="手机客户端" /></a> </div>
        
        <div class="activity-block "><a rel="nofollow"  class="activity-link" target="_blank" href="#" id="activity-shuiqunawaimai"><img src="/images/listindex/waimai.gif" title="谁去拿外卖" /></a> </div>
        
        <div class="activity-block last"> <a rel="nofollow"  class="activity-link" target="_blank" href="#" id="activity-faq"><img src="/images/listindex/faq.gif" title="常见问题" /></a> </div>
    </div> -->
     <!--   暂时不用  -->
  <table class="table table-bordered more-restaurant-table">
    <thead>
      <tr>
        <th colspan="5">更多餐厅</th>
      </tr>
    </thead>
    <tbody>
     <%int j=0; %>
      <s:if test="list!=null">
      <tr>
      <s:iterator id="l" value="%{list}" status="st">
      <s:if test="#st.count>5">
      <%j++; %>
      <td>
		<s:if test="#l.restaurant.isBusiness==1">
      		<div class="restaurant-block lite" id="restaurant-<s:property value="#l.restaurant.id"/>" rel="<s:property value="#l.restaurant.id"/>">
      	</s:if>
      	<s:else>
      		<div class="restaurant-block closed" id="restaurant-<s:property value="#l.restaurant.id"/>" rel="<s:property value="#l.restaurant.id"/>">
      	</s:else>
            <div class="favor-book" > 
                <span class="favor-icon"></span>
                <s:if test="uid>0">
                	<s:if test="#l.restaurant.isCollect==0">
                		<a href="#" class="hover-add-favor hidden entry-favor" rel="<s:property value="#l.restaurant.id"/>">收藏</a>
	                </s:if>
	                <s:if test="#l.restaurant.isCollect==1">
	                	<a href="#" class="hover-un-favor hidden entry-un-favor" rel="<s:property value="#l.restaurant.id"/>">取消收藏</a>
	                </s:if>
	                </s:if>
            </div>
            <div class="line-one">
              <div class="logo-wrapper">
                <div class="logo"> 
                    <a href="res.action?id=<s:property value="#l.restaurant.id"/>" target="_blank">
                    	<img class="restaurant-logo " alt="" src="http://fuss10.elemecdn.com/0/50/3a6d5854b2284356e46cd4733c6a5jpeg.jpeg" />
                    </a> 
                    <div class="phone-logo" ></div>
                </div>
                <div class="deliver-time-wrapper busy" title="平均送餐时间:<s:property value="#l.restaurant.deliverTime"/>分钟"><s:property value="#l.restaurant.deliverTime"/>分钟</div>
              </div>
              <div class="info">
                <div class="name"> 
                	<a class="restaurant-link" href="res.action?id=<s:property value="#l.restaurant.id"/>" target="_blank"><s:property value="#l.restaurant.resName"/></a> 
                </div>
                <!--  饭店显示 样式  start -->
                <s:if test="#l.restaurant.isBusiness==1">
                <div class="flavors ">
                <s:property value="#l.restaurant.resTaste"/></div>
                <div class="ratings ">
                    <div class="r<s:property value="#l.restaurant.score"/> rating-star" title="餐厅评价：<s:property value="#l.restaurant.score"/>分"></div>
                </div>
                </s:if>
                <!--  饭店显示 样式  end -->
                <!--  饭店休息中的样式 start-->
                <s:if test="#l.restaurant.isBusiness==0">
                <div class="status-label closed ">
                    <span>休息中</span>
                </div>
                </s:if>
                <s:if test="#l.restaurant.isBusiness==-1">
                <div class="status-desc closed ">
                      <span title="餐厅已休假，暂不提供外卖服务">餐厅已休假</span>
                </div>
                </s:if>
                <!-- 两项中任选一个显示  end -->
                <!--  收藏中的样式  end  -->
              </div>
            </div>
            <div class="hidden line-hover-dlg" id="restaurant-hover-dlg-content-15780">
              <div class="restaurant-panel"> <span class="favor-icon hidden"></span>
                <div class="restaurant-block">
                  <div class="line-one">
                    <div class="logo-wrapper">
                      <div class="logo"> 
                      	<img class="restaurant-logo" alt="" src="http://fuss10.elemecdn.com/0/50/3a6d5854b2284356e46cd4733c6a5jpeg.jpeg"> 
                        </div>
                      <div class="deliver-time-wrapper"> <s:property value="#l.restaurant.deliverTime"/>分钟 </div>
                    </div>
                    <div class="info">
                      <div class="name" title="<s:property value="#l.restaurant.resName"/>"><s:property value="#l.restaurant.resName"/></div>
                      <div class="flavors three-line"> 
                      	<s:property value="#l.restaurant.resTaste"/>
                       </div>
                      <div class="ratings three-line">
                        <div class="r<s:property value="#l.restaurant.score"/> rating-star"  title="餐厅评价：<s:property value="#l.restaurant.score"/>分"> </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="restaurant-more-info">
                  <div class="divider hidden"></div>
                <div class="divider hidden"></div>
                <p class="ann"><strong>公告:</strong>&nbsp;<s:property value="#l.restaurant.notice"/></p>
                <p class="ann"><strong>温馨提示：</strong>&nbsp;<s:property value="#l.restaurant.specialMemo"/></p>
                  <p class="restaurant-deliver-desc"><strong>起送价:</strong>&nbsp;<s:property value="#l.restaurant.deliveryPrice"/></p>
                  <p><strong>地址:</strong>&nbsp;<s:property value="#l.restaurant.address"/></p>
                  <p><strong>营业时间:</strong>
				  <s:if test="#l.restaurant.timeList!=null">
                  <s:iterator id="t" value="%{#l.restaurant.timeList}">
                  &nbsp;<s:property value="#t.startHour"/>:<s:if test="#t.startMinute<10">0<s:property value="#t.startMinute<10"/></s:if><s:if test="#t.startMinute>9"><s:property value="#t.startMinute<10"/></s:if>
                   - <s:property value="#t.endHour"/>:<s:if test="#t.endMinute<10">0<s:property value="#t.endMinute<10"/></s:if><s:if test="#t.endMinute>9"><s:property value="#t.endMinute<10"/></s:if>
                  </s:iterator>
                  </s:if>
				  </p>
                  <p><strong>简介:</strong>&nbsp;<s:property value="#l.restaurant.summary"/></p>
                </div>
              </div>
            </div>
          </div></td>
          <%
          if(j%5==0){
          	%></tr><tr><%
          }
           %>
          </s:if>
          </s:iterator>
          <%
          if(j%5!=0){
          	for(int l=0;l<(5-j%5);l++){
          		%><td></td><%
          	}
          } 
          %>
          </tr>
          </s:if>
    </tbody>
  </table>
  
  <s:action name="foot" executeResult="true"></s:action>
</div>
<!--  alert div start---->
<div id="copy_dlg_restaurant"  class="restaurant-hover-dlg right hide" >
  <div class="wrapper dark_shadow">
    <div class="callout_tip"></div>
    <div class="detail"> </div>
  </div>
</div>
<!--  alert div  end ---->

<!---/body   --> 
<!--     msg box   -->
<!--    msg box   -->
</div>
<script src="publicui/js/jquery-1.8.3.js"></script> 
<script src="publicui/jquery-ui/js/jquery-ui-1.9.2.custom.js"></script> 
<script src="publicui/bootstrap/js/bootstrap.min.js"></script> 
<script src="js/head.js"></script> 
<script src="js/listindex.js"></script> 
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">提示</h3>
  </div>
  <div class="modal-body">
    <p id="collect_p"></p>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
   <!-- <button class="btn btn-primary">确定 </button>   -->
  </div>
</div>
<script type="text/javascript">
function collectaaa(){
	if(t==1){
		$.ajax({
			url:"collect.action?action=removeAjax2&objId="+collectid+"&objType=0",
			dataType:"html", 
			success: function(html){
				$('#collectList').html(html);
				$('#collect_p').html("已删除收藏");
				$('#myModal').modal();
			}
		});
	}else{
		$.ajax({
			url:"collect.action?action=saveRes2&objType=0&objId="+collectid,
			dataType:"html", 
			success: function(html){
				$('#collectList').html(html);
				$('#collect_p').html("已添加收藏");
				$('#myModal').modal();
			}
		});
	}
}
</script>
</body> 
</html>
<!-- haha! everyone is a frontier -->